package cn.schoolwow.quickdao.test.module.business.ddl.service;

import cn.schoolwow.quickdao.domain.DAO;
import cn.schoolwow.quickdao.domain.entity.create.CreateTableRequest;
import cn.schoolwow.quickflow.domain.FlowContext;
import cn.schoolwow.quickflow.flow.BusinessFlow;

public class CreateEmptyColumnTableTestCaseFlow implements BusinessFlow {
    @Override
    public void executeBusinessFlow(FlowContext flowContext) throws Exception {
        DAO dao = flowContext.checkInstanceData(DAO.class);

        CreateTableRequest createTableRequest = new CreateTableRequest();
        createTableRequest.tableName = "测试空字段表";
        createTableRequest.comment = "空表";
        dao.createTable(createTableRequest);
    }

    @Override
    public String name() {
        return "创建空字段表";
    }

}
